﻿using MediatR;
using ProductionLine.ErrorCode;

namespace ProductionLine.API.Application.Command.Dispatch
{
    public class AddDispatchCommand:IRequest<APIResult<int>>
    {
        /// <summary>
        /// 任务编号
        /// </summary>
        public string TaskCode { get; set; }
        /// <summary>
        /// 任务名称
        /// </summary>
        public string TaskName { get; set; }


        /// <summary>
        /// 产品外键
        /// </summary>
        public int ProductId { get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
        public string ProductName { get; set; }
        /// <summary>
        /// 规格型号
        /// </summary>
        public string Specification { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public string UnitName { get; set; }
        /// <summary>
        /// 物料外键
        /// </summary>
        public int MaterialId { get; set; }

        /// <summary>
        /// 物料名称
        /// </summary>
        public string MaterialName { get; set; }

        /// <summary>
        /// 班组外键
        /// </summary>
        public int TeamId { get; set; }
        /// <summary>
        /// 班组名称
        /// </summary>
        public string TeamName { get; set; }
        /// <summary>
        /// 负责人
        /// </summary>
        public string Leader { get; set; }
        /// <summary>
        /// 成员名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 站点外键
        /// </summary>
        public int SiteId { get; set; }

        /// <summary>
        /// 站点名称
        /// </summary>
        public string SiteName { get; set; }
        /// <summary>
        /// 车间外键
        /// </summary>
        public int CarId { get; set; }
        /// <summary>
        /// 车间名称
        /// </summary>
        public string CarName { get; set; }
        /// <summary>
        /// 生产线外键
        /// </summary>
        public int LineId { get; set; }
        /// <summary>
        /// 生产线名称
        /// </summary>
        public string LineName { get; set; }
        /// <summary>
        /// 工序
        /// </summary>
        public int ProcessId { get; set; }

        public int ProductionOrdersId { get; set; }
        /// <summary>
        /// 计划数量
        /// </summary>
        public int PlannedQuantity { get; set; }
        /// <summary>
        /// 实际生产数量
        /// </summary>
        public int ActualQuantity { get; set; }
        /// <summary>
        /// 计划开工时间
        /// </summary>
        public DateTime? PlanStart { get; set; }
        /// <summary>
        /// 计划完工时间
        /// </summary>
        public DateTime? PlanEnd { get; set; }
        /// <summary>
        /// 实际开工时间
        /// </summary>
        public DateTime? ActualStart { get; set; }
      
    }
}
